package com.subaiqiao.yunshiyuan.entrance.ysy.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.subaiqiao.yunshiyuan.basis.pojo.BasisPojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 曹朝禹
 * @since 2022-05-13
 */
@Getter
@Setter
@TableName("verification_code")
@ApiModel(value = "VerificationCode对象", description = "")
public class VerificationCode implements BasisPojo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("验证码编号")
      @TableId(value = "verification_code_id", type = IdType.AUTO)
    private Integer verificationCodeId;

    @ApiModelProperty("验证码")
    private String vfCode;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDatetime;

    @ApiModelProperty("时效")
    private Integer vfAging;

    @ApiModelProperty("验证码类型(0手机 1邮件)")
    private Integer vfType;

    @ApiModelProperty("接收号码")
    private String vfReception;

    @ApiModelProperty("业务名称(登录 修改密码 找回密码 注册)")
    private String vfOperation;


}
